layui.define(['index', 'form'], function (exports) {
    let $ = layui.$;
    let form = layui.form;
    let layer = layui.layer;
    let initPassword = $("#initialPassword").val();
    //初始密码弹出提示框
    let index = '';
    if(initPassword=='2'){
        index = layer.open({
            type: 1,
            title:"",
            // shadeClose: true,
            closeBtn: 0,
            // shade: 0,
            time: 0,
            // maxmin: true, //开启最大化最小化按钮
            area: ['30%', '40%'],
            content: $('#updatePassTips') //这里content是一个DOM，注意：最好该元素要存放在body最外层，否则可能被其它的相对元素所影响
        });
    }
    form.on('submit(login-query-submit)', function (obj) {
        layer.close(index);
        layer.open({
            area: ['35%', '50%'],
            // title: "修改密码",
            shadeClose: false,
            shade: 0.3,
            closeBtn: 0,
            type: 2,
            content: "/cas/pwd.action?flag=1",
            end: null,
            id:null,
            time: 0,
            closeBtn: 0
        });
        return false;
    });

    //对外暴露的接口
    exports('art_index_openTips', {});
});
